package projetInfo1;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Operation {
	private String action;
	private Date date;
	private String commentaire;

	public Operation(String action, Date date, String commentaire) {
		this.action = action;
		this.date = date;
		this.commentaire = commentaire;
	}

	public String toString() {
		SimpleDateFormat s = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
		return "[" + s.format(date) + "]" + " " + action + " : " + commentaire;
	}
}
